###################Instructions to run the model for ENP blue whales###################

The analysis can be run from RStudio. A project file named "Appendix 5 - Model code" is provided. Scripts should be run within the project, to bypass the need to set the working directory 

The backward SDP iteration can be run using the code in "BW_Backward_SDP.R"

The Rcpp functions (*.cpp files) and ancillary information (*.csv files) required in the SDP optimisation are provided, and loaded automatically when running the script for the backward iteration

The results of the backward iteration (i.e., yearly arrays of behavioural and reproductive strategies) need to be pre-processed using the code in file "BW_Recombine_arrays_byDay.R" (to obtain daily arrays, which are easier and faster to manage)

The forward iteration (MC simulation) can then be run using the code in "BW_Forward_MCsim.R"

The folders "Backward SDP results" and "Forward MC simulations" are currently empty. They will get populated as results are generated